Skip to content

Conversation

einalien
Copy link
Owner

@einalien einalien commented Nov 8, 2026 •

Summary

This PR extends the CI security pipeline by enabling Checkov secret scanning alongside the existing OpenTofu and GitHub Actions security checks.

It also addresses false-positive findings in Kubernetes backend configurations and updates the README to document the enhanced security checks and verified infrastructure lifecycle.

Changes

Security Scanning

  • Enabled Checkov's secrets framework in .github/workflows/ci.yml.
  • Extended security scanning to cover potential exposed credentials and secrets.
  • Retained automated security checks as part of the required CI pipeline.

False-Positive Handling

  • Investigated six CKV_SECRET_6 findings affecting Kubernetes backend secret_suffix values.
  • Added targeted suppression comments for the state identifiers, which are not credentials.
  • Preserved the existing remote-state configuration and suffix values.
  • Kept secret scanning enabled rather than disabling the detection rule globally.

Formatting and Documentation

  • Formatted the affected OpenTofu configuration files using tofu fmt.
  • Updated README.md with the enhanced security-scanning configuration.
  • Documented the verified deployment, destruction, and recreation lifecycle across TEST, STAGE, and PROD.
  • Documented the independent TEST/STAGE destruction workflows and existing PROD approval safeguards.

Validation

  • OpenTofu formatting checks passed.
  • OpenTofu configuration validation passed.
  • TFLint checks passed.
  • Checkov security scanning passed.
  • Checkov secrets scanning enabled.
  • GitHub Actions CI completed successfully.

Security Considerations

The CKV_SECRET_6 findings were caused by Kubernetes backend state identifiers rather than exposed credentials. Targeted suppressions document these false positives while preserving secret detection elsewhere in the repository.

No OpenStack credentials, Kubernetes authentication data, or remote-state identifiers were changed.

Notes

  • The existing deployment and destruction workflows remain unchanged.
  • The Protect main ruleset continues to require successful CI checks before merging.
  • PROD deployment and destruction remain protected by human approval through the PROD GitHub environment.

@einalien einalien self-assigned this Nov 8, 2026
@einalien einalien added the enhancement New feature or request label Nov 8, 2026
@einalien einalien added the documentation Improvements or additions to documentation label Nov 8, 2026
@einalien einalien merged commit 4dbccd7 into main Nov 8, 2026
1 check passed
@einalien einalien deleted the feat/ci-checkov-secrets branch November 8, 2026 22:57
Sign in to join this conversation on GitHub.
Labels
documentation Improvements or additions to documentation enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant